package com.liuyu2783.redislock.exception;

/**
 * com.liuyu2783.redislock.exception
 *
 * @author liuyu07
 * @date 2019-6-28
 */
public class RedisLockException extends RuntimeException  {

    private String code;
    private String message;

    public RedisLockException(String code, String message) {
        super();
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "RedisLockException{" +
                "code='" + code + '\'' +
                ", message='" + message + '\'' +
                '}';
    }
}
